﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="FrmTrabajador.aspx.cs" Inherits="UI.Tesoreria.FrmTrabajador" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">



        .style4
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
        background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;
            color: #333333;
            text-align: left;
            line-height: 16px;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            height: 23px;
        }
         .style42
        {
            width: 343px;
            height: 26px;
        }
         .styleCOntrolIngreso
        {
            width: 60px;
            height: 26px;
        }
                                        
        .styleLabel
        {
            width: 10px;
            height: 26px;
        }
                         
        .style39
        {
            width: 2227px;
        }
        .style40
        {
            width: 169px;
        }
                                
        .style16
        {
            height: 28px;
            width: 71px;
        }
                                         
        .style27
        {
            width: 235px;
        }
        .botoncito
        {
            height: 26px;
        }
        .style13
        {
            width: 236px;
        }
                        
        .style63
        {
            width: 6px;
        }
                                
        .style78
        {
            width: 3979px;
        }
        .style79
        {
            width: 3px;
        }
                
         </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
        <table style="width: 100%;">
            <tr>
                <td class="style78">
                    &nbsp;
                </td>
                <td class="style79">
                    <asp:ImageButton ID="ImageButton4" runat="server" 
                        ImageUrl="~/Imagenes/Iconos/back.png" />
                </td>
                <td>
                    <asp:ImageButton ID="btnGuardarTrabajador" runat="server" 
                        ImageUrl="~/Imagenes/Iconos/accept.png" 
                        onclick="btnGuardarTrabajador_Click" />
                </td>
            </tr>
        </table>
        <asp:Panel ID="PanelMantenimiento" runat="server" BackColor="White" Width="591px">
            <table class="style1" style="width: 93%">
                <tr>
                    <td class="style4" colspan="2">
                        DATOS GENERALES
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        <asp:Label ID="Label5" runat="server" CssClass="leftColumn" Text="CODIGO"></asp:Label>
                    </td>
                    <td class="styleCOntrolIngreso">
                        <asp:TextBox ID="txtCodigo" runat="server" CssClass="textEntry" Height="19px" onkeypress="isNumberOrLetter()"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        <asp:Label ID="Label10" runat="server" Text="APELLIDO PATERNO"></asp:Label>
                    </td>
                    <td class="styleCOntrolIngreso">
                        <asp:TextBox ID="txtApellidoPaterno" runat="server" CssClass="textEntry" Height="19px"
                            Width="271px" onkeypress="isNumberOrLetter()"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        <asp:Label ID="Label11" runat="server" Text="APELLIDO MATERNO"></asp:Label>
                    </td>
                    <td class="styleLabel">
                        <asp:TextBox ID="txtApellidoMaterno" runat="server" CssClass="textEntry" Height="24px"
                            onkeypress="isNumberOrLetter()" Width="270px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        <asp:Label ID="Label12" runat="server" Text="NOMBRES"></asp:Label>
                    </td>
                    <td class="styleLabel">
                        <asp:TextBox ID="txtNombres" runat="server" CssClass="textEntry" Height="25px" onkeypress="isNumberOrLetter()"
                            Width="271px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style42">
                        CARGO</td>
                    <td class="styleLabel">
                        <asp:DropDownList ID="comboCargo" runat="server" Height="20px" Width="385px">
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
            <table class="style1" style="width: 70%; margin-left: 152px;">
                <tr>
                    <td class="style39">
                        <asp:Label ID="LabelError" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                    <td class="style40">
                        &nbsp;
                    </td>
                    <td class="style16">
                        <asp:Label ID="IDSN" runat="server" Visible="False"></asp:Label>
                    </td>
                </tr>
            </table>
            <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Height="279px"
                Width="565px">
                <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
                    <HeaderTemplate>
                        Programas</HeaderTemplate>
                    <ContentTemplate>
                        <table style="width: 74%;">
                            <tr>
                                <td class="style63">
                                    &nbsp;&nbsp;
                                </td>
                                <td>
                                    <asp:ImageButton ID="btnNuevo" runat="server" Height="26px" ImageUrl="~/Imagenes/Iconos/add.png"
                                        OnClick="btnNuevo_Click" Width="28px" />
                                   
                                </td>
                            </tr>
                        </table>


                         <asp:GridView ID="GridDetalle" runat="server" AutoGenerateColumns="False" 
                                        DataKeyNames="id"  
                                        
                            Width="487px" onrowdeleted="GridDetalle_RowDeleted" 
                            onrowdeleting="GridDetalle_RowDeleting" 
                            onrowdatabound="GridDetalle_RowDataBound">
                                        <Columns>
                                            <asp:TemplateField HeaderText="Programa">
                                                <ItemTemplate>
                                                    <%--    <asp:Label ID="Label1" Text='<%#Eval("Concepto") %>' runat="server">
                                </asp:Label>--%>
                                                    <asp:TextBox ID="txtPrograma" runat="server" Text='<%#Eval("Programa") %>' 
                                                        Visible="false" Width="70px">
                                </asp:TextBox>
                                                    <asp:DropDownList ID="comboProgramasItem" runat="server" 
                                                         Width="270px">
                                                        <asp:ListItem Value="00">--Selecciones--</asp:ListItem>
                                                    </asp:DropDownList>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="Programa" HeaderText="Programa" Visible="False">
                                            <ItemStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:TemplateField HeaderText="Sueldo">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txtSueldo" runat="server" Text='<%#Eval("Sueldo") %>' 
                                                        Width="70px">
                                </asp:TextBox>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="Sueldo" HeaderText="Sueldo" Visible="False">
                                            <ItemStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="id" HeaderText="id" Visible="False" />
                                            <asp:CommandField ShowDeleteButton="True" />
                                        </Columns>
                                    </asp:GridView>
                    </ContentTemplate>
                </asp:TabPanel>
            </asp:TabContainer>
            <table class="style1" style="width: 19%">
                <tr>
                    <td class="style27">
                        &nbsp;
                    </td>
                    <td class="style13">
                        &nbsp;
                    </td>
                    <td class="style16">
                        &nbsp;
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <br />
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
